package org.hhh.product.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.hhh.basic.domain.Base;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class Product extends Base {
    private String name;
    private String resources;
    //售价
    private BigDecimal saleprice;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date offsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date onsaletime;
    private Integer state=0;//0下架，1上架
    //成本价
    private BigDecimal costprice;
    private Date createtime=new Date();
    //销售数量
    private Long salecount;
    private ProductDetail detail = new ProductDetail();

    /**
     * 支付方式
     */
    private Integer payType;



}
